﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAzure.StorageClient;
using System.Runtime.Serialization;

namespace wcfTestClient
{
    public class User : TableServiceEntity
    {
        public string Name { get; set; }

        public DateTime Birthdate { get; set; }

        public string Email { get; set; }

        public double Latitude { get; set; }

        public double Longitude { get; set; }

        public DateTime LocationTime { get; set; }

        public string Status { get; set; }

        public User() { }

        public User(string userId, string name, DateTime birthdate, string email)
        {
            // setup keys for azure table storage <applicationName, uniqueJobId>
            PartitionKey = "Users";
            RowKey = userId;

            this.Name = name;
            this.Birthdate = birthdate;
            this.Email = email;

            Latitude = -360.0;
            Longitude = -360.0;

            LocationTime = new DateTime(1777, 1, 1);

            Status = "";
        }
    }
}
